<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>资产明细 - 奢享时光</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
  <style>
    :root {
      --primary-gradient: linear-gradient(135deg, #7F00FF, #E100FF);
      --secondary-gradient: linear-gradient(135deg, #00F5A0, #00D9F5);
      --primary-color: #7F00FF;
      --secondary-color: #00F5A0;
      --accent-color: #FFE600;
      --dark-bg: #2D1B69;
      --light-bg: #6B3FA0;
      --text-light: #FFFFFF;
      --text-secondary: #E0D5FF;
      --card-bg: rgba(255, 255, 255, 0.1);
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      --border-radius: 16px;
      --border: 1px solid rgba(255, 255, 255, 0.18);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      font-family: 'Noto Sans SC', 'Poppins', sans-serif;
      background: var(--dark-bg);
      color: var(--text-light);
      font-size: 14px;
      line-height: 1.5;
      overflow-x: hidden;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    button {
      font-family: inherit;
      cursor: pointer;
      border: none;
      outline: none;
    }

    .app-container {
      max-width: 480px;
      margin: 0 auto;
      min-height: 100vh;
      background: linear-gradient(180deg, var(--dark-bg), var(--light-bg));
      position: relative;
      overflow: hidden;
      padding-bottom: 70px;
    }

    /* 背景装饰 */
    .bg-decoration {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .bg-circle {
      position: absolute;
      border-radius: 50%;
    }

    .bg-circle:nth-child(1) {
      width: 300px;
      height: 300px;
      top: -150px;
      right: -100px;
      background: radial-gradient(circle, rgba(225, 0, 255, 0.2), rgba(225, 0, 255, 0));
    }

    .bg-circle:nth-child(2) {
      width: 250px;
      height: 250px;
      bottom: 10%;
      left: -100px;
      background: radial-gradient(circle, rgba(0, 245, 160, 0.15), rgba(0, 245, 160, 0));
    }

    /* 顶部导航 */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      background: rgba(45, 27, 105, 0.8);
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: var(--border);
    }

    .back-button {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    .page-title {
      font-size: 18px;
      font-weight: 600;
    }

    .header-actions {
      display: flex;
      gap: 15px;
    }

    .header-actions i {
      font-size: 18px;
      color: var(--text-light);
      opacity: 0.9;
    }

    /* 内容区域 */
    .content {
      position: relative;
      z-index: 1;
      padding: 20px;
    }

    /* 标签切换 */
    .tabs {
      display: flex;
      margin-bottom: 20px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 100px;
      padding: 3px;
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      border: var(--border);
    }

    .tab {
      flex: 1;
      text-align: center;
      padding: 10px 0;
      border-radius: 100px;
      font-size: 14px;
      color: var(--text-secondary);
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .tab.active {
      background: var(--primary-gradient);
      color: var(--text-light);
    }

    /* 资产明细卡片 */
    .asset-detail-card {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
    }

    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .card-title {
      font-size: 16px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .card-title i {
      color: var(--accent-color);
    }

    .card-value {
      font-size: 18px;
      font-weight: 600;
      color: var(--accent-color);
    }

    .detail-item {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 15px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      margin-bottom: 12px;
    }

    .detail-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    .detail-icon.income {
      color: var(--secondary-color);
    }

    .detail-icon.outcome {
      color: var(--accent-color);
    }

    .detail-info {
      flex: 1;
    }

    .detail-title {
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 3px;
    }

    .detail-time {
      font-size: 12px;
      color: var(--text-secondary);
    }

    .detail-value {
      font-size: 16px;
      font-weight: 600;
    }

    .detail-value.income {
      color: var(--secondary-color);
    }

    .detail-value.outcome {
      color: var(--accent-color);
    }

    .detail-status {
      font-size: 12px;
      color: var(--text-secondary);
      margin-top: 3px;
    }

    /* 无数据状态 */
    .empty-state {
      text-align: center;
      padding: 40px 0;
    }

    .empty-state i {
      font-size: 48px;
      color: rgba(255, 255, 255, 0.2);
      margin-bottom: 15px;
    }

    .empty-state p {
      color: var(--text-secondary);
    }

    /* 底部导航 */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      max-width: 480px;
      margin: 0 auto;
      background: rgba(45, 27, 105, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-top: var(--border);
      display: flex;
      justify-content: space-around;
      padding: 12px 0;
      z-index: 100;
    }

    .nav-button {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      color: var(--text-secondary);
      font-size: 12px;
      padding: 5px 0;
      flex: 1;
      transition: all 0.3s ease;
    }

    .nav-button i {
      font-size: 18px;
      margin-bottom: 2px;
    }

    .nav-button.active {
      color: var(--accent-color);
    }
  </style>
</head>
<body>
  <div class="app-container">
    <!-- 背景装饰 -->
    <div class="bg-decoration">
      <div class="bg-circle"></div>
      <div class="bg-circle"></div>
    </div>

    <!-- 顶部导航 -->
    <header class="header">
      <a href="wallet.html" class="back-button">
        <i class="fas fa-arrow-left"></i>
      </a>
      <div class="page-title">资产明细</div>
      <div class="header-actions">
        <i class="fas fa-ellipsis-v"></i>
      </div>
    </header>

    <!-- 主要内容 -->
    <main class="content">
      <!-- 标签切换 -->
      <div class="tabs">
        <div class="tab" data-type="coupon">拼团券</div>
        <div class="tab" data-type="star">幸运星</div>
        <div class="tab" data-type="equity">股权</div>
      </div>

      <!-- 拼团券明细区域 -->
      <div class="tab-content" id="coupon-details" style="display: none;">
        <div class="asset-detail-card">
          <div class="card-header">
            <div class="card-title">
              <i class="fas fa-ticket-alt"></i>
              <span>拼团券</span>
            </div>
            <div class="card-value">3张</div>
          </div>
          
          <div class="detail-item">
            <div class="detail-icon income">
              <i class="fas fa-plus"></i>
            </div>
            <div class="detail-info">
              <div class="detail-title">购物返券</div>
              <div class="detail-time">2024-06-15 10:30</div>
              <div class="detail-status">有效期至 2024-09-15</div>
            </div>
            <div class="detail-value income">+1</div>
          </div>
          
          <div class="detail-item">
            <div class="detail-icon income">
              <i class="fas fa-plus"></i>
            </div>
            <div class="detail-info">
              <div class="detail-title">购物返券</div>
              <div class="detail-time">2024-06-10 09:15</div>
              <div class="detail-status">有效期至 2024-09-10</div>
            </div>
            <div class="detail-value income">+1</div>
          </div>
          
          <div class="detail-item">
            <div class="detail-icon income">
              <i class="fas fa-plus"></i>
            </div>
            <div class="detail-info">
              <div class="detail-title">购物返券</div>
              <div class="detail-time">2024-06-01 14:45</div>
              <div class="detail-status">有效期至 2024-09-01</div>
            </div>
            <div class="detail-value income">+1</div>
          </div>
        </div>
      </div>

      <!-- 幸运星明细区域 -->
      <div class="tab-content" id="star-details" style="display: none;">
        <div class="asset-detail-card">
          <div class="card-header">
            <div class="card-title">
              <i class="fas fa-star"></i>
              <span>幸运星</span>
            </div>
            <div class="card-value">2颗</div>
          </div>
          
          <div class="detail-item">
            <div class="detail-icon income">
              <i class="fas fa-plus"></i>
            </div>
            <div class="detail-info">
              <div class="detail-title">拼团成功奖励</div>
              <div class="detail-time">2024-06-12 16:20</div>
              <div class="detail-status">永久有效</div>
            </div>
            <div class="detail-value income">+1</div>
          </div>
          
          <div class="detail-item">
            <div class="detail-icon income">
              <i class="fas fa-plus"></i>
            </div>
            <div class="detail-info">
              <div class="detail-title">拼团成功奖励</div>
              <div class="detail-time">2024-05-20 11:30</div>
              <div class="detail-status">永久有效</div>
            </div>
            <div class="detail-value income">+1</div>
          </div>
        </div>
      </div>

      <!-- 股权明细区域 -->
      <div class="tab-content" id="equity-details" style="display: none;">
        <div class="asset-detail-card">
          <div class="card-header">
            <div class="card-title">
              <i class="fas fa-chart-pie"></i>
              <span>股权</span>
            </div>
            <div class="card-value">1份</div>
          </div>
          
          <div class="detail-item">
            <div class="detail-icon income">
              <i class="fas fa-plus"></i>
            </div>
            <div class="detail-info">
              <div class="detail-title">幸运星兑换</div>
              <div class="detail-time">2024-05-15 09:00</div>
              <div class="detail-status">已激活</div>
            </div>
            <div class="detail-value income">+1</div>
          </div>
          
          <div class="detail-item">
            <div class="detail-icon income">
              <i class="fas fa-coins"></i>
            </div>
            <div class="detail-info">
              <div class="detail-title">股权分红</div>
              <div class="detail-time">2024-06-01 09:00</div>
              <div class="detail-status">已发放</div>
            </div>
            <div class="detail-value income">¥100.00</div>
          </div>
        </div>
      </div>
    </main>

    <!-- 底部导航 -->
    <nav class="bottom-nav">
      <a href="index.html" class="nav-button">
        <i class="fas fa-home"></i>
        <span>首页</span>
      </a>
      <a href="groupbuy.html" class="nav-button">
        <i class="fas fa-users"></i>
        <span>拼团</span>
      </a>
      <a href="shares.html" class="nav-button">
        <i class="fas fa-chart-line"></i>
        <span>股权</span>
      </a>
      <a href="profile.html" class="nav-button active">
        <i class="fas fa-user"></i>
        <span>我的</span>
      </a>
    </nav>
  </div>

  <script>
    document.addEventListener('DOMContentLoaded', function() {
      // 标签切换功能
      const tabs = document.querySelectorAll('.tab');
      const tabContents = document.querySelectorAll('.tab-content');
      
      // 切换标签函数
      function switchTab(tab) {
        // 移除所有选项卡的active类
        tabs.forEach(t => t.classList.remove('active'));
        // 添加当前选项卡的active类
        tab.classList.add('active');
        
        // 获取要显示的内容ID
        const type = tab.dataset.type;
        const targetId = `${type}-details`;
        
        // 隐藏所有内容
        tabContents.forEach(content => {
          content.style.display = 'none';
        });
        
        // 显示目标内容
        document.getElementById(targetId).style.display = 'block';
      }
      
      // 为所有标签添加点击事件
      tabs.forEach(tab => {
        tab.addEventListener('click', function() {
          switchTab(this);
        });
      });
      
      // 处理URL参数
      const urlParams = new URLSearchParams(window.location.search);
      const type = urlParams.get('type');
      
      if (type) {
        // 如果有type参数，找到对应的标签并激活
        const targetTab = document.querySelector(`.tab[data-type="${type}"]`);
        if (targetTab) {
          switchTab(targetTab);
        } else {
          // 如果找不到对应标签，默认显示第一个
          switchTab(tabs[0]);
        }
      } else {
        // 默认显示第一个标签
        switchTab(tabs[0]);
      }
      
      // 添加页面过渡动画
      const sections = document.querySelectorAll('.asset-detail-card');
      sections.forEach((section, index) => {
        section.style.opacity = '0';
        section.style.transform = 'translateY(20px)';
        section.style.transition = `opacity 0.5s ease, transform 0.5s ease`;
        
        setTimeout(() => {
          section.style.opacity = '1';
          section.style.transform = 'translateY(0)';
        }, 100 + (index * 150));
      });
    });
  </script>
</body>
</html> 